import Vue from 'vue'
import App from './App'
import router from './router/index'
import store from './store'
import './assets/css/main.css'
import 'babel-polyfill'
import VCharts from 'v-charts'
import {
  Button,
  Form,
  Input,
  FormItem,
  Container,
  Header,
  Aside,
  Icon,
  Menu,
  MenuItem,
  Tooltip,
  Dropdown,
  DropdownItem,
  DropdownMenu,
  Dialog,
  Radio,
  RadioGroup,
  DatePicker,
  Table,
  TableColumn,
  Upload, Pagination, Row, Col, Card,Notification
} from 'element-ui'
import * as API from '@/api'
Vue.use(VCharts)
Vue.use(Form)
    .use(Input)
    .use(Button)
    .use(FormItem)
    .use(Container)
    .use(Header)
    .use(Aside)
    .use(Icon)
    .use(Menu)
    .use(MenuItem)
    .use(Tooltip)
    .use(Dropdown)
    .use(DropdownItem)
    .use(DropdownMenu)
    .use(Dialog)
    .use(Input)
    .use(Radio)
    .use(RadioGroup)
    .use(DatePicker)
    .use(Table)
    .use(TableColumn)
    .use(Upload)
    .use(Pagination)
    .use(Row)
    .use(Col)
    .use(Card)
new Vue({
  beforeCreate() {
    Vue.prototype.$bus=this,
        Vue.prototype.$API=API
    Vue.prototype.$notify = Notification;
  },
  el: '#app',
  router,
  store,
  render: h => h(App)
})
